package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

public interface AlipayService {

    /**
     * 创建支付
     * @param orderId
     * @return
     * @throws AlipayApiException
     */
    String createaliPay(Long orderId) throws AlipayApiException;

//    关闭支付宝交易
    Boolean closePay(Long orderId) throws AlipayApiException;

//    查询交易记录
    boolean checkPayment(Long orderId);
}
